/**
 * 
 */
package com.ambow.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @author Administrator
 *  @param用户表
 */
@Entity
@Table
public class User extends ID implements Serializable {
	 private String account;
	 private String pwd;
	 private String name;
	 private String address;
	 private String tel;
	 private String degree;//区分用户和管理员
	 private Integer status;
	
	@OneToMany(targetEntity=Message.class,mappedBy="user")
	 private Set<Message> messages =new HashSet<Message>();
	 @OneToMany(targetEntity=Orders.class,mappedBy="user")
	 private Set<Orders> orders=new HashSet<Orders>();
	 public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getDegree() {
		return degree;
	}
	public void setDegree(String degree) {
		this.degree = degree;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public Set<Message> getMessages() {
		return messages;
	}
	public void setMessages(Set<Message> messages) {
		this.messages = messages;
	}
	public Set<Orders> getOrders() {
		return orders;
	}
	public void setOrders(Set<Orders> orders) {
		this.orders = orders;
	}
	
	 
	 
	 
	 

}
